<?php defined('IN_YuLin') || exit('NO PERMIT!'); ?>
{template member/header}

	<input type="hidden" id="hdErrMsg" />
	<div class="main-head">
		<span>用户中心 &gt; 账户管理 &gt; 密码修改</span>
	</div>
	<div class="con_box clear">
		<div class="btn-box clear">
			<span class="tabs-con">
				<a id="loginPwd" href="javascript:void(0)" data-type="1" class="btn" data-bind="click:switchPwd">修改登录密码</a>
				<a id="withdrawalpwd" href="javascript:void(0)" data-type="2" class="btn active" data-bind="click:switchPwd">{if $_user['paypassword']}修改{else}设置{/if}取款密码</a>
			</span>
		</div>
		<div class="form-horizontal" data-bind="visible:showLoginPwd">
			<div class="control-group">
				<label class="control-label">输入旧登录密码：</label>
				<div class="controls">
					<input type="password" data-bind="value:oldLoginPwd" name="oldLoginPwd">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">输入新登录密码：</label>
				<div class="controls">
					<input type="password" data-bind="value:newLoginPwd" name="newLoginPwd">
					<span class="help-float">（密码由数字和字母组成，长度在6-20位之间）</span>
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">确认新登录密码：</label>
				<div class="controls">
					<input type="password" data-bind="value:okNewLoginPwd" name="okNewLoginPwd">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label"></label>
				<div class="controls">
					<a href="javascript:void(0)" class="btn" data-bind="click:modifyLoginPwd">修改</a>
					<a href="javascript:void(0)" class="btn" data-bind="click:reset">重置</a>
					<span data-bind="visible:isSubmitting">正在修改，请稍后...</span>
				</div>
			</div>
		</div>
		<div class="form-horizontal" data-bind="visible:showWithdrawalPwd">
			<div class="control-group">
				<span class="help-float" style="margin-left:58px;">提示：取款密码由4-6位数字或字母或数字和字母组成，在线取款时需要输入取款密码才能进行取款</span>
			</div>
			{if $_user['paypassword']}
			<div class="control-group">
                <label class="control-label">输入旧提款密码：</label>
                <div class="controls">
                    <input type="password" data-bind="value:oldWithdrawalPwd" name="oldWithdrawalPwd">
                    <span class="help-float">（由数字和字母或数字和字母组成4-6个字符）</span>
                </div>
            </div>
			{/if}
			<div class="control-group">
				<label class="control-label">输入新提款密码：</label>
				<div class="controls">
					<input type="password" data-bind="value:newWithdrawalPwd" name="newWithdrawalPwd">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label">确认新提款密码：</label>
				<div class="controls">
					<input type="password" data-bind="value:okNewWithdrawalPwd" name="okNewWithdrawalPwd">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label"></label>
				<div class="controls">
					<a href="javascript:void(0)" class="btn" data-bind="click:modifyWithdrawalPwd">设置</a>
					<a href="javascript:void(0)" class="btn" data-bind="click:reset">重置</a>
					<span data-bind="visible:isSubmitting">正在修改，请稍后...</span>
				</div>
			</div>
		</div>
	</div>
	
	<!--<div class="con_box clear">-->
	<div style="display:none;">
        <div class="btn-box clear">
            <span class="tabs-con">
                <a href="javascript:;" class="dib btn " name="seting">密保设定</a>
                <a href="javascript:;" class="dib mbactive" name="find">密码找回</a>
            </span>
        </div>
        <!-- 密保设定 begin -->
        <div class="form-horizontal" id="password_seting">
            <div class="control-group">
                <label class="control-label"><font class="fc_red">*</font>问题一：</label>
                <div class="controls">
                    <select id="question_one">
                        <option value="您母亲的姓名是？" selected>您母亲的姓名是？</option>
                        <option value="您配偶的生日是？">您配偶的生日是？</option>
                        <option value="您的学号（或工号）是？">您的学号（或工号）是？</option>
                        <option value="您母亲的生日是？">您母亲的生日是？</option>
                        <option value="您高中班主任的名字是？">您高中班主任的名字是？</option>
                        <option value="您父亲的姓名是？">您父亲的姓名是？</option>
                        <option value="您小学班主任的名字是？">您小学班主任的名字是？</option>
                        <option value="您父亲的生日是？">您父亲的生日是？</option>
                        <option value="您配偶的姓名是？">您配偶的姓名是？</option>
                        <option value="您初中班主任的名字是？">您初中班主任的名字是？</option>
                        <option value="您最熟悉的童年好友名字是？">您最熟悉的童年好友名字是？</option>
                        <option value="您最熟悉的学校宿舍室友名字是？">您最熟悉的学校宿舍室友名字是？</option>
                        <option value="对您影响最大的人名字是？">对您影响最大的人名字是？</option>
                    </select>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">答案：</label>
                <div class="controls">
                    <input type="text" id="answer_one" maxlength="25" />
                    <span class="help-float">（长度最多为25个字符）</span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label"><font class="fc_red">*</font>问题二：</label>
                <div class="controls">
                    <select id="question_two" value="">
                        <option value="您母亲的姓名是？" selected>您母亲的姓名是？</option>
                        <option value="您配偶的生日是？">您配偶的生日是？</option>
                        <option value="您的学号（或工号）是？">您的学号（或工号）是？</option>
                        <option value="您母亲的生日是？">您母亲的生日是？</option>
                        <option value="您高中班主任的名字是？">您高中班主任的名字是？</option>
                        <option value="您父亲的姓名是？">您父亲的姓名是？</option>
                        <option value="您小学班主任的名字是？">您小学班主任的名字是？</option>
                        <option value="您父亲的生日是？">您父亲的生日是？</option>
                        <option value="您配偶的姓名是？">您配偶的姓名是？</option>
                        <option value="您初中班主任的名字是？">您初中班主任的名字是？</option>
                        <option value="您最熟悉的童年好友名字是？">您最熟悉的童年好友名字是？</option>
                        <option value="您最熟悉的学校宿舍室友名字是？">您最熟悉的学校宿舍室友名字是？</option>
                        <option value="对您影响最大的人名字是？">对您影响最大的人名字是？</option>
                    </select>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">答案：</label>
                <div class="controls">
                    <input type="text" id="answer_two" maxlength="25" />
                    <span class="help-float">（长度最多为25个字符）</span>
                </div>
            </div>
            <div class="control-group mt50px">
                <label class="control-label"></label>
                <div class="controls">
                    <a href="javascript:;" class="btn" id="modify_one_btn">确定</a>
                    <a href="javascript:;" class="btn" id="reset_one_btn">重置</a>
                </div>
            </div>
        </div>
        <!-- 密保设定 end -->
        <!-- 密码找回 begin -->
        <div class="form-horizontal dn" id="password_find">
            <div class="control-group">
                <label class="control-label">
                    <font class="fc_red">*</font>问题一：
                </label>
                <div class="controls">
                    <p id="question_1">{$passwordquestion['question_1']}</p>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">答案：</label>
                <div class="controls">
                    <input type="text" id="answer_1" maxlength="25" />
                    <span class="help-float">（长度最多为25个字符）</span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">
                    <font class="fc_red">*</font>问题二：
                </label>
                <div class="controls">
                    <p id="question_2">{$passwordquestion['question_2']}</p>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">答案：</label>
                <div class="controls">
                    <input type="text" id="answer_2" maxlength="25" />
                    <span class="help-float">（长度最多为25个字符）</span>
                </div>
            </div>
            <div class="control-group mt50px">
                <label class="control-label"></label>
                <div class="controls">
                    <a href="javascript:;" class="btn" id="modify_two_btn">确定</a>
                    <a href="javascript:;" class="btn" id="reset_two_btn">重置</a>
                </div>
            </div>
        </div>
        <!-- 密码找回 end -->
    </div>

	<script>
		var hasWithdrawalPwd = '{if $_user["paypassword"]}True{else}False{/if}';
		var IsGeneralize = 'True';
		var questionstatus = {if $passwordquestion}1{else}0{/if};
	</script>
	<script src="static/js/PWD.Edit.js"></script>
	<!--<script src="static/js/PWD.Question.js"></script>-->

{template member/footer}